<%@ taglib prefix="a" uri="http://java.sun.com/jmaki" %>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<jsp:useBean id="event" scope="session" class="tools.Event_StubImpl" />
<jsp:useBean id="client" scope="session" class="tools.SystemClient_StubImpl" />
<html>
<head>
    <title>The Autism Spot</title>
    <link rel="stylesheet" href="autism.css" type="text/css" />
</head>

<body>
<div id="pagewidth" >
<div id="header" >
    <%@ include file="header.html" %>
</div>
<div id="wrapper" >
<div id="twocols" >
    <div id="maincol">
        <p><strong> Welcome, Scott!</strong></p>
        <p id="warning"><jsp:getProperty name="event" property="warningMessage" />
        </p>
        <div class="myEvents">
            <h3 class="heading">My Events </h3>
            <ul>
                <% int size = event.eventListSize();
                if(size != 0){
                    for(int i = 0; i < size; i++){%>
                <li><span class="title">
                        <%event.setTempEvent(i);%>
                        <%= event.tempEvent.title %>
                    </span><br />
                    Date:
                    <%=event.tempEvent.startDate.toString()%> thru
                    <%=event.tempEvent.endDate.toString()%>
                    <br />
                    Time: <%=event.tempEvent.startTime%> - <%=event.tempEvent.endTime%>
                </li>
                <%}%> 
             <% 
                }%>
            </ul>
            <span class="eventDisplay"><a href="addEvent.jsp">Add an Event</a></span>
        </div>
        
        <div class="myEvents">
            <h3 class="heading">Related Events </h3>
            <ul>
                <li>
                    No Events At this Moment.
                </li>
            </ul>
        </div>
    </div>
    <div id="rightcol" >
        <a:ajax name="yahoo.calendar" />
        
        
    </div>
</div>
<div id="leftcol"><img src="spot3.jpg"  height="130" weight="75"/> <br>
<div class="buttons">
    <br>
    <a href="#"><strong>Home</strong></a>
    <a href="profile.html">My Profile</a>
    <a href="#">My Community</a>
    <a href="#">My Places</a>
    <a href="#">Online Learning</a>
    <a href="http://www.asaga.com">Logout</a><br>
</div>
<div class="buttons">
<p style="background: #EEEEEE; color: black;" align="center"> <strong>My Groups</p></strong>
<ul>
    <li><a href="#">T.A.S.</li></a>
</ul>
</div>
</div>
</div>
<div id="footer">
    <%@ include file="footer.html" %>
</div>
</div>
</body>
</html>